package com.stu.student_back_end.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stu.student_back_end.common.Result;
import com.stu.student_back_end.controller.dto.CountDTO;
import com.stu.student_back_end.controller.dto.PageDTO;
import com.stu.student_back_end.entity.TblMoveAndOut;
import com.stu.student_back_end.entity.TblNoHere;
import com.stu.student_back_end.entity.TblStudent;

/**
 * 学生service层接口
 */

public interface ITblStudentService extends IService<TblStudent> {

    //学生登录
    Result login(String username, String password);

    //分页查询
    Page<TblStudent> queryStudent(PageDTO pageDTO);

    //修改入住状态
    boolean updateStudentState(TblMoveAndOut moveAndOutVo, int id);

    //查询学生数
    CountDTO queryStudentCount();

    //添加缺寝记录
    boolean addStudentNoHere(TblNoHere noHere);
}
